package com.wang.service;

import com.wang.mapper.DevCheckDao;
import com.wang.pojo.DevCheck;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DevCheckServiceImpl extends BaseServiceImpl implements DevCheckService {

    @Autowired
    private DevCheckDao devCheckDao;


    @Override
    public void addDevCheck(DevCheck devCheck) {
        devCheckDao.addDevCheck(devCheck);
    }

    @Override
    public void updateDevCheckStatusCode(String devCheckTable, Integer devCheckId, String devCheckStatusCode) {
        devCheckDao.updateDevCheckStatusCode(devCheckTable, devCheckId, devCheckStatusCode);
    }

    @Override
    public String selectLastCheckTime(String devCheckTable) {
        return devCheckDao.selectLastCheckTime(devCheckTable);
    }

    @Override
    public DevCheck selectLastCheck(String devCheckTable) {
        return devCheckDao.selectLastCheck(devCheckTable);
    }


}
